Camera device and method and program for starting the camera device

ABSTRACT

A camera device comprises a movable optical system, a driving unit which drives the optical system, and a control unit which makes the driving unit start driving of the optical system to a predetermined state by an initialization of the optical system by using an interrupt processing which is executed by setting an interrupt processing routine before the operating system is started, when the camera device is started up in a state in which an operation mode for photographing is set.

CROSS-REFERENCE TO RELATED APPLICATIONS

The present application is a Continuation Application of U.S.application Ser. No. 10/787,445 filed Feb. 25, 2004, now U.S. Pat. No.7,385,631 which is based upon and claims the benefit of priority fromprior Japanese Patent Application No. 2003-49898, filed Feb. 26, 2003,the entire contents of which are incorporated herein by reference.

BACKGROUND OF THE INVENTION

1. Field of the Invention

The present invention relates to a camera device having a movableoptical system, and a method and a program for starting the cameradevice.

2. Description of the Related Art

Conventionally, in electronic still cameras or digital cameras, anobject is picked up by an image pickup element such as a CCD or thelike, and while the image is being displayed as a through image on aliquid crystal display device, the picked-up image is recorded asdigital data on a recording medium such as a memory card or the like inaccordance with an operation of a shutter. Accordingly, at the time ofstartup when the power supply of an electronic still camera is turned onfor photographing, various initializing operations with respect to bothof the hardware and the software, for example, such as a preparation formaking data to be able to be recorded on a recording medium, apreparation for image picking-up an object, and a preparation fordisplaying the picked-up image, are indispensable. As a time from thepower-on until when it is in a state in which photographing isavailable, a given starting time which is longer than that in the caseof a silver salt camera or an analog camera is required. Therefore,there is the shortcoming that the electronic still cameras or thedigital cameras cannot cope with an urgent chance to press a shutterkey.

Therefore, in order to make shortening of the above-described startingtime to be possible, a conventional example in which a time of readingmanagement information from an freely attachable and detachable memorycard is omitted is disclosed in paragraph 0025 of Japanese PatentApplication KOKAI Publication No. 2002-237977.

However, in an electronic still camera, which has a sinkable or movableoptical system in which a lens is housed in a camera housing duringnon-photographing and it is necessary to protrude the zoom lens prior tophotographing, the time required for protruding the optical systemaccounts for most of the starting time. Therefore, even if the time ofreading management information from a memory card is omitted as in theconventional document, the time accounts for extremely small percentageof the total starting time, and there is the problem that an effect onreduction in starting time has not been satisfactory yet.

BRIEF SUMMARY OF THE INVENTION

The present invention has been achieved in consideration of theconventional problem, and an object of the present invention is toprovide a camera device which can reduce the starting time in anelectronic still camera having a movable optical system, a method forstarting the camera device, and a program used for realizing those.

According to an embodiment of the present invention, a camera devicecomprises an optical system, a driving unit which drives the opticalsystem, and a control unit which makes the driving unit start driving ofthe optical system to a predetermined state by an initialization of theoptical system by using an interrupt processing which is executed bysetting an interrupt processing routine before the operating system isstarted, when the camera device is started up in a state in which anoperation mode for photographing is set.

Additional objects and advantages of the present invention will be setforth in the description which follows, and in part will be obvious fromthe description, or may be learned by practice of the present invention.

The objects and advantages of the present invention may be realized andobtained by means of the instrumentalities and combinations particularlypointed out hereinafter.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWING

The accompanying drawings, which are incorporated in and constitute apart of the specification, illustrate embodiments of the presentinvention and, together with the general description given above and thedetailed description of the embodiments given below, serve to explainthe principles of the present invention in which:

FIG. 1 is a block diagram schematically illustrating an electronic stillcamera showing an embodiment of the present invention;

FIG. 2 is a schematic diagram showing a data storing structure of aflash memory in the electronic still camera of the embodiment;

FIG. 3 is a schematic diagram showing stored data at a program area ofthe flash memory;

FIG. 4 is a former part of a flowchart showing a processing procedure ofa CPU at the time of startup of the electronic still camera of theembodiment;

FIG. 5 is a latter part of the flowchart showing the processingprocedure of the CPU at the time of startup of the electronic stillcamera;

FIG. 6 is a schematic diagram showing relationships between types ofstartup interrupt processings and operational items realized by therespective interrupt processings;

FIG. 7 is an explanatory diagram showing how to set interrupt routinesused to initialize the lens system;

FIG. 8 is a flowchart showing a zoom-open processing of the embodiment;and

FIG. 9 shows a sequence of main operations performed after the cameradevice is started when the recording mode is set.

DETAILED DESCRIPTION OF THE INVENTION

An embodiment of a camera device according to the present invention willnow be described with reference to the accompanying drawings. FIG. 1 isa block diagram illustrating an electrical configuration of anelectronic still camera showing the embodiment of the present invention.

The electronic still camera has a zooming function and an automaticfocusing function, and has a lens block 1 for realizing the functions.The lens block 1 comprises a movable lens group 11 including a zoom lensand a focus lens which are movably arranged in the direction of anoptical axis, position detecting sensors 12, 13 for a zoom position anda focus position in the lens group 11, a zoom motor 14 for moving thezoom lens and a focus motor 15 for moving the focus lens, an actuator 16for an iris which opens and closes an iris (not shown), and an actuator17 for a shutter which opens and closes a mechanical shutter. Theabove-described respective motors and actuators 14 to 17 are driven byvarious drivers 18 to 21, for zooming, for focusing, for an iris, andfor a shutter, which are provided at a driver block 2. The respectivemotors 14, 15 and actuators 14 to 17, and the driver block 2 configuredriving means.

The electronic still camera has a CCD image-pickup system block 3including mainly a CCD 31 which is an image pickup element arranged atthe rear side of the photographing optical axis of the lens group 11, aCDS (Correlated Double Sampling)/AD conversion block 32, and a TG(Timing Generator) 33. When the electronic still camera is set to arecording mode for photographing, the CCD 31 photoelectric-converts anoptical image of an object which is formed by the lens group 11, andoutputs, each given cycle, one photoelectric-converted output screen bybeing scanning-driven by the TG 33. The CDS/AD block 32 carries outnoise elimination due to correlated double sampling and conversion intoa digital signal with respect to an output analog signal whose gain hasbeen appropriately adjusted for each of the color components of RGB byan amplifier (not shown) after being output from the CCD 31, and outputsthe signal as an image pickup signal to a color process circuit 4.

The color process circuit 4 performs color process processing includingpixel interpolation processing to the input image pickup signal,generates digital-valued luminance signal (Y) and color-differencesignals (Cb, Cr), and outputs the signals to a CPU 5 serving as controlunit for controlling the entire electronic still camera. The CPU 5comprises a microprocessor having an internal memory, various arithmeticprocessing circuits, an I/O interface for data, and the like.

The digital signal (image signal) transmitted to the CPU 5 istemporarily stored in a DRAM 6 and transmitted to an image display unit7. The image display unit 7 includes a video encoder, a VRAM, a liquidcrystal monitor, and a driving circuit thereof, and generates a videosignal based on the transmitted video signal by the video encoder, and adisplay image based on the video signal, i.e., a through image of theobject picked up by the CCD 31 is displayed-on the liquid crystalmonitor.

A key input unit 8 comprises various keys such as a power key, arecording/playback mode change-over switch, a shutter key, a menu key,or the like, and a sub-CPU which receives input therefrom and transmitsan operation signal corresponding thereto to the CPU 5. The sub-CPUtransmits a state signal showing a state of the mode change-over switch,i.e., a mode setting state as needed. When the shutter key is presseddown in the aforementioned recording mode, a trigger signal (operationsignal) is output from the key input unit 8 to the CPU 5.

When the trigger signal is input, the CPU 5 reads out, for each of thecomponents of Y, Cb, Cr and in basic units called basic blocks which are8 pixels (vertical)×8 pixels (horizontal), the image data of one screenfetched from the CCD 31 at that point in time, and writes the image datainto a JPEG circuit 9. The JPEG circuit 9 carries out DCT (DiscreteCosine Transform) and coding. The compressed one-image data *compressedby the JPEG circuit 9 is stored in an image recording unit 42. The imagerecording unit 42 comprises a card interface, and nonvolatile variousmemory cards which are connected to the CPU 5 via the card interface,and which are mounted so as to be freely attachable and detachable on acamera body.

In the recording mode for photographing, the CPU 5 makes a lens controlblock 43 generate driving signals to be transmitted to the variousdrivers 18 to 21 of the driver block 2 on the basis of various programsstored in a rewritable nonvolatile flash memory 41, the aforementionedoperation signal from the key input unit 8, or the like, and controlsthe position controls of the zoom lens and focus lens, an opening of theiris, and the opening and closing action of the mechanical shutter.Positional information of the lens detected by the position detectingsensors 12, 13 for a zoom position and a focus position are successivelyinput to the CPU 5 via the lens control block 43.

On the other hand, the image data recorded in the image recording unit42 is read by the CPU 5 in the playback mode for displaying the recordedimage, transmitted to the image display unit 7 after being expanded bythe JPEG circuit 9, and displayed on the liquid crystal monitor.

FIG. 2 is a schematic diagram showing a data storing structure of theaforementioned flash memory 41. The flash memory 41 is storage means,and a lens information area 41 a, a program area 41 b, and memory area41 c for various data are ensured therein. At the lens information area41 a, device information which is the data acquired at the stage offactory shipping of the electronic still camera, and which shows thedevice performance of the lens group 11 (the zoom lens and the focuslens), and which is the adjustment data which is indispensable forcontrolling those, is stored. Moreover, at the lens information area 41a, device information of the image pickup system of the CCD 31, whitebalance characteristic, or the like, as well, are stored.

At the program area 41 b, programs required for the control theaforementioned respective portions by the CPU 5, and various datarequired for the control are stored. In the present embodiment, as oneexample, as shown in FIG. 3, the program area 41 b comprises a bootprogram area 101 and a main program area 102 which are sequentiallyprovided. The boot program area 101 stores programs for startup whichare first read when the camera device is powered on, such as a flashrewrite module 101 a, a lens control module 101 b for startup, astarting factor determining module 101 c for startup, a deviceinformation access module 101 d for startup, and a program load module101 e for startup. The lens control module 101 b sets an interruptnecessary for controlling the lens group 11. The flash rewrite module101 a may be omitted. The main program area 102 stores an OS (OperatingSystem) 102 a which is indispensable for the operation of the CPU 5 anda plurality of task modules (TASK 1, TASK 2, TASK 3, TASK N) which arerequired for realizing various operations in the electronic still cameraare stored.

The memory area 41 c is a area which is managed by a file systemconfigured by the CPU 5 after the startup of the OS, and various datawhich are read from the CPU 5 as needed and which are other than theabove-described data are stored thereat. At this area, arbitrary dataincluding image data as well are stored as needed.

Next, operations according to the present embodiment of the electronicstill camera comprising the above-described configuration will bedescribed in accordance with FIGS. 4 to 9. Flowcharts of FIGS. 4 and 5show the concrete processing procedures of the CPU 5 at the time ofstartup accompanying an ON-operation of the power switch. FIG. 9 shows asequence of main operations performed when the recording mode is set atthe time of startup the camera.

After the CPU 5 is started up accompanying power-on, the CPU 5 loadsonly the boot program 101 from the program area 41 b of the flash memory41 by bootstrap loader, and expands those in the internal memory (stepSA1 and period P1 in FIG. 9). The bootstrap loader is a small programwhich is read for loading the program, and is to be automaticallyaccessed by the CPU 5 at the same time of the startup, and is stored ina predetermined address area (other than the memory area 41c) of theflash memory 41. Thereafter, the CPU 5 processes root tasks from stepSA2 up to step SA14 on the basis of the boot program 101.

Setting of hardware such as an initialization of a port or the like iscarried out (step SA2), and setting of an optical system interrupthandler, i.e., setting of interrupt processing required for the controlof the lens group 11 is carried out (step SA3). FIG. 6 is a schematicdiagram showing the relationship between types of the interruptprocessings for startup which are set at step SA3 and operational itemsrealized by the respective interrupt processings. A zoom-open processingis achieved by ADC, MOTOR (ZOOM), edge (pulse), and timer interruptprocessings. The ADC interrupt carries out analog-to-digital conversionwith respect to the detected value from a photo interrupter (orphotoelectric sensor, not shown) provided at the camera body, andoutputs the value. The MOTOR (ZOOM) interrupt controls an output of thezoom motor 14. The edge (pulse) interrupt detects a moving amount of thezoom lens by counting of the number of pulses. Timer interrupt performsa time count and a timing adjustment and realizes a shutter-openprocessing.

The settings of these interrupt processings are settings in which theinterrupt processing routines executed for executing the respectiveinterrupt processings are made to be in a state of being available.Usually, the interrupt processings are not carried out before thestartup of the OS. However, in the present embodiment, an exceptionalprocessing routine 201, as shown in FIG. 7, which is the same as thatwhich the OS uses, is used in order to carry out an interruptexceptional processing before the startup of the OS. The exceptionalprocessing routine 201 comprises a general exceptional processingroutine 201 a, a TLB exceptional processing routine 201 b, and aninterrupt exceptional processing routine 201 c. When an exceptionarises, the exception is processed at each routine of the exceptionalprocessing routine 201. The interrupt exceptional processing routine 201c used by the OS uses a table 202 of interrupt processings andprocessing routines which holds the respective interrupt factors and thehead addresses of the routines for processing the respective interruptfactors. When an interrupt arises, the interrupt exceptional processingroutine 201 c refers to the table 202, and jumps to the head addressesof the interrupt processing routines (1, 2, . . . N) corresponding tothe respective interrupt factors. Accordingly, by directly writing therespective interrupt factors and the addresses of the interruptprocessing routines for processing the respective interrupt factors,which correspond to the respective interrupt processings described inFIG. 6, into the table 202 of interrupt processings and processingroutines, the exceptional processing routine 201 which is the same asthat which the OS uses is made to be available. In step SA3, by carryingout this setting, a predetermined interrupt processing routine which isset after startup of the OS is made to be available before the startupof the OS.

A state signal is received from the sub-CPU of the key input unit 8, anda determination of a starting factor is carried out (step SA4). Here, itis determined whether the mode state which has been set is a recordingmode for photographing or another mode other than the recording mode,such as a playback mode for displaying a recorded image or the like. Thedifference between the recording mode and the playback mode is whetheror not a lens is required to be protruded when the power is turned on.If the operation mode is the recording mode, the lens is required to beprotruded when the power is turned on. The power supply of the opticalsystem such as the lens block 1, the driver block 2, and the lenscontrol block 43 is controlled so as to be turned on (step SA5), anddevice information is loaded from the flash memory 41 (step SA6). It isdetermined whether high-speed startup is carried out or normal startupis carried out on the basis of the determined results of the startingfactor acquired in step SA5 (step SA7). When the mode which has been-setis the recording mode, it is determined as the high-speed startup, andwhen the mode is another mode other than it, it is determined as thenormal startup.

When the starting factor is the normal startup, the processings of thefollowing steps SA9 to SA14 are not carried out, loading of the mainprogram 102 which is the remaining control program is immediatelystarted (step SA14).

On the other hand, when the starting factor is the high-speed startup, apredetermined time (for example, 30 ms or less) until the time when avoltage of the optical system started to be supplied in step SA5 rises asteady-state voltage is waited for (step SA8), and an initialization ofthe hardware in the lens control block 43 is carried out (step SA9). Theshutter actuator 17 is made to start shutter open of the mechanicalshutter (step SA10 and period P2 in FIG. 9), a battery voltage ischecked at this point in time, and it is determined whether or not thebattery voltage exceeds a predetermined voltage (step SA11). Note that,some waiting for processings are carried out during from the time whenthe shutter open of the mechanical shutter is started to the time of thecheck for the battery voltage. Here, when the voltage value is thepredetermined value or less, and it is determined as “No Battery,” theprocessings of the following steps SA12 and SA13 are not carried out,loading of the main program 102 which is the remaining control programis immediately started (step SA14).

On the other hand, when the voltage value exceeds the predeterminedvalue, and it is determined as “Battery OK,” a check and aninitialization of the adjustment data for the zoom lens and the focuslens among the device information loaded in step SA6 are carried out(step SA12), and the protrusion (zoom-open) of the zoom lens for aninitialization of the lens group 11 is made to start (step SA13 andperiod P3 in FIG. 9).

Here, the zoom-open processing of the zoom lens will be described. Theprocessing is carried out by the interrupt which is set at step SA3.FIG. 8 is a flowchart showing the zoom-open processing (step SA13 ofFIG. 4). A zoom correction value, i.e., a moving amount up to a targetposition to which the zoom lens is protruded is calculated on the basisof the device information (step SB1). Confirmation of housing of thelens group 11 is carried out (step SB2). The confirmation is carried outby confirming whether a detected level (PR output) due to the ADCinterrupt is “H” or “L.”

Thereafter, driving of the zoom lens by the MOTOR (ZOOM) interrupt andthe timer interrupt are started (step SB3).

At the beginning, the confirmation of detecting of the PR output iscontinued, and it is determined whether the zoom lens is released fromthe state of being housed or not (steps SB4, SB5). When the zoom lens isreleased from the state of being housed (YES in step SB4), after amoving amount of the zoom lens is once reset (step SB6), moving pulses(edge pulses) are counted one by one (step SB7). When the zoom lensreaches the target position (e.g., a Wide end) in a short time (YES instep SB8), driving of the zoom lens is stopped (step SB9), theprocessing OK is set and reported to the outside (step SB10), and thedriving processing is completed. Note that, on the way of theprocessing, when the state of the zoom lens being housed cannot beconfirmed (NO in step SB2), when it cannot be confirmed that the zoomlens is released from the state of being housed, and when the movingpulses cannot be counted, the driving of the zoom lens is stopped due toerror processing, processing NG is set and reported to the outside(steps SB11 to SB14), and the driving processing is completed.

Immediately after the above-described zoom-open processing (step SA13)of the zoom lens is started, the CPU 5 starts loading of the remainingprogram (step SA14). Namely, without the end of the zoom-open operationof the lens group 11 being waited for, the main program 102 is loadedsimultaneously.

After the main program 102 is loaded, an OS is started up (step SA15 andperiod P5 in FIG. 9). Continuously, an initialization of the hardware,i.e., a memory card of the image recording unit 42, a message buffer,the DRAM 6 or the like (steps SA16, SA17), checking of the remainingdata of the device information (other than the adjustment data of thezoom lens and the focus lens), and an initialization of the CCD imagepickup system block 3 by using those data (step SA18), andsimultaneously setting various interrupt processings used in a controlunder the main program by initialization of the interrupt processings.That is, the respective interrupt factors and the addresses of theinterrupt processing routines for processing the respective interruptfactors, which correspond to the respective interrupt processingsdescribed in FIG. 6, are written into the table 202 of interruptprocessings and processing routines shown in FIG. 7 (step SA19).

Initializations of an LED and the display system are carried out (stepsSA20, SA21). Moreover, initializations of the software, i.e.,initialization of the sub-CPU (various settings) and an initializationof a memory manager are carried out (steps SA22, SA23). Some ofinitializations of the sub-CPU are already carried out at the time ofthe determination of a starting factor in step SA4. After the respectivetasks realizing various operations in the main program 102 whichcompleted loading are generated (step SA24), the termination processingof the root task is carried out (step SA25). After these processings,the memory area 41 c becomes a usable state.

Hereafter, the routine proceeds to the execution of the processingscorresponding to the respective modes for recording and playback in thesame way as in the normal processing based on the processings of theplurality of tasks generated (step SA26). Namely, the CPU 5 executes thefollowing processings by executing the respective tasks in accordancewith the main program 102.

First, when the determined result in step SA11 described above is “NoBattery,” a predetermined termination processing is carried out.Further, when the determined result is “Battery OK,” the routineproceeds to a processing corresponding to an operation mode which hasbeen set, and the processing by a recording mode or a playback mode iscarried out. When the recording mode is set, as shown in FIG. 9, theiris is made to be in a state of being open by driving the actuator 16for iris (period P6 of FIG. 9) after the termination of the zoom-openoperation of the zoom lens started at the above-described step SA13(refer to FIG. 4). Thereafter, the focus motor 15 is driven, and amovement to the initial position of the focus lens (FOCUS OPEN) in thelens group 11 is started (period P7 of FIG. 9). Further, during thetime, about that time of the control of the iris, a preparation forstartup of a through image by an initialization of the image pickupsystem of the CCD 31, the white balance characteristic, and the like isstarted, and the preparation is completed during the operation of thefocus motor 15 (period P8 of FIG. 9). Thereafter, at the point in timewhen the focus lens reach the initial position, the through image isdisplayed on the image display unit 7 (period P9 of FIG. 9), and theroutine comes into a state of being on standby for photographing.

As described above, in the present embodiment, the zoom-open operationof the zoom lens is started before startup of the OS by the boot program101, and the interrupt processings for carrying out the processing arecarried out by using a predetermined interrupt processing routine whichis set after the OS is started. Therefore, even if the OS is started onthe way of initializing of the lens group 11, the zoom-open operation ofthe lens group 11 can be continued without being affected by the settingof the interrupt processing routine due to the OS. Accordingly, aplurality of CPUs are not required, and the zoom-open operation of thelens group 11 (an initialization of the optical system), the loading andstartup of the OS, the preparations for initializations at the otherportions by the main program 102 can be simultaneously carried out at alow cost. As a result, the interrupt processing for initializing theoptical system is carried out before the startup of the operatingsystem. Moreover, the initialization of the optical system can becontinued without being affected by the setting of the interruptprocessing routine accompanying the startup of the operating system onthe way of the initialization. Accordingly, a shortening of the startingtime can be aimed for at a low cost in the configuration having thecollapsible mount type lens group 11 as well.

According to the embodiment, a single CPU 5 starts a zoon-openprocessing for the lens group 5 before an operating system is started byusing a startup program which is first executed after the power on.During the zoom-open processing, the operating system and controlprograms used for controlling the entire device are started and apreparation for other initialization processings are executed inparallel with the lens group initialization. The zoom-open processing isperformed by an interruption processing which is performed by using apredetermined interrupt routine set at the time of start of the OS. Evenif the OS is started during the zoom-open processing for the lens group11, it is possible to continue the zoom-open processing. Thus, there areprovided a camera device which can reduce the starting time in anelectronic still camera having a movable optical system, a method forstarting the camera device, and a program used for realizing those in alow cost.

1. A camera device comprising: an optical system which, uponinitialization, is driven to a predetermined state when the cameradevice is started up; a setting unit configured to set theinitialization of the optical system to drive the optical system to thepredetermined state as an interrupt processing of an operating systembefore the operating system is started, when the camera device isstarted up in a state in which a recording mode for photographing isset; and a control unit configured to start the operating system afterthe initialization of the optical system is set.
 2. The camera deviceaccording to claim 1, wherein said optical system comprises a movablelens.
 3. The camera device according to claim 1, wherein said opticalsystem comprises a sinkable lens.
 4. A method for starting a cameradevice comprising an optical system, the method comprising: setting aninitialization of the optical system to drive the optical system to apredetermined state as an interrupt processing of an operating systembefore the operating system is started, when the camera device isstarted up in a state in which a recording mode for photographing isset; and starting the operating system after the initialization of theoptical system is set.